package com.piece.mall.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@ApiModel(value = "商品sku销售属性参数")
public class SkuSaleAttrVo {

    @ApiModelProperty(value = "属性主键")
    private Long attrId;

    @ApiModelProperty(value = "属性名称")
    private String attrName;

    @ApiModelProperty(value = "sku属性值")
    private String attrValue;

    @ApiModelProperty(value = "销售属性包含sku集合")
    private List<AttrValueVo> attrValues;

    @Data
    @Builder
    public static class AttrValueVo {
        private String attrValue;
        private String skuIds;
        private Boolean checked;
    }
}
